@extends('default.layouts.adminPublic')
@section('title', '查看简历统计列表')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/resume_browse?days=1')}}">首页</a> &raquo; 查看简历统计列表
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->
    <div class="con">
        <div class="conMain">
            <div class="result_wrap">
                <div class="smart look">
                    <ul>
                        <li class="title">访问类型：</li>
                        <li><a href="{{url('admin/resume_browse?days=1')}}">1天内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=3')}}">3天内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=7')}}">7天内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=15')}}">半个月内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=30')}}">一个月内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=90')}}">一个季度内</a></li>
                        <li><a href="{{url('admin/resume_browse?days=365')}}">一年内</a></li>
                        <li><a href="{{url('admin/resume_browse')}}">全部</a></li>
                    </ul>
                    <div class="message"><p>
                            @if(!empty($appends['days']))<strong>{{$appends['days']}}</strong>天内@else总@endif共查找到<strong>{{$companyInfo->total()}}</strong>个记录！且每页显示查看简历统计记录{{$companyInfo->perPage()}} 个。
                        </p></div>
                </div>
            </div>
            <div class="manage">
                @include('flash::message')
            </div>
            <div class="conInfo">
                <form name="thisForm" id="thisForm" action="" method="post">
                    {{csrf_field()}}
                    <div class="conList" id="conList">
                        <dl class="one">
                            <dt><input name="selectall" type="checkbox" value="1" onclick="CheckAll(this)"/></dt>
                            <dd class="countresume1">公司名称</dd>
                            <dd class="countresume2">用户名</dd>
                            <dd class="countresume3">查看简历次数</dd>
                            <dd class="countresume4">最后登录时间</dd>
                            <dd class="countresume5">最后登录IP</dd>
                            <dd class="countresume6">注册时间</dd>
                            <dd class="countresume7">操作</dd>
                        </dl>
                        @if(count($companyInfo) > 0 )
                            @foreach($companyInfo as $v)
                                <dl id="list{{$v->uid}}">
                                    <dt><input name="selected_id[]" type="checkbox" value=""/></dt>
                                    <dd class="countresume1"><a href="{{url("admin/go_com_about?uid=".$v->uid)}}" target="_blank">{{str_limit($v->company_name,24)}}</a>
                                        @if($v->viptime>date('Y-m-d,H:i:s'))<b style="color:#f43838">vip</b>@endif
                                    </dd>
                                    <dd class="countresume2">{{str_limit($v->username,20)}}</dd>
                                    <dd class="countresume3">{{$v->countResume}}</dd>
                                    <dd class="countresume4">{{$v->last_login_time}}</dd>
                                    <dd class="countresume5">{{$v->last_login_ip}}</dd>
                                    <dd class="countresume6">{{$v->regtime}}</dd>
                                    <dd class="countresume7">
                                        <span><a href="{{url('admin/company_welcome/'.$v->uid)}}" target="_blank">账户中心</a></span></dd>
                                </dl>
                            @endforeach
                        @else
                            <div class="nullcon">对不起！查看简历记录为空！</div>
                        @endif
                        <dl class="last">
                            <dt>
                                <input name="selectall" id="selectall" type="checkbox" value="1"
                                       onclick="CheckAll(this)"/>
                                <label for="selectall">全选</label>
                            </dt>
                        </dl>
                    </div>
                </form>
                <div class="page_list" style="width: 100%; float: left; margin-top:15px;">
                    {!! $companyInfo->appends($appends)->links() !!}
                </div>
            </div>

            <div class="stopper" style="margin-top:10px; border-top: 1px solid #e5e5e5"></div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
@endsection